<template>
    <view class="winLayout" v-if="isLoading" @touchmove.stop.prevent="">
        <image class="loadingIcon" src="@/static/images/logo.png" mode="scaleToFill"/>
    </view>
</template>

<script>
export default {
    data() {
        return {
            isLoading: false,
        }
    },
    onLoad(options) {
    },
    methods: {
        showLoading() {
            this.isLoading = true
        },
        hideLoading() {
            this.isLoading = false
        }
    }
}
</script>

<style lang="scss" scoped>
.winLayout {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    background-color: rgba(0, 0, 0, 0.4);
}

.loadingIcon {
    width: 230rpx;
    height: 135rpx;
}

</style>